﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Rappelz.GameServer
{
    public class JobInfo
    {
        public enum Class : int
        {
            Fighter = 1,
            Hunter = 2,
            Magician = 3,
            Summoner = 4,
        }

        public enum Race : int
        {
            Gaia = 3,
            Deva = 4,
            Asura = 5,
        }

        public enum StartJob : int
        {
            GaiaBasic = 100,
            DevaBasic = 200,
            AsuraBasic = 300,
        }

        public int id;
        public int text_id;
        public int stat_id;
        public sbyte job_class;
        public sbyte job_depth;
        public short up_lv;
        public short up_jlv;
        public short[] available_job = new short[4];

        public void Copy(JobInfo info)
        {
            id = info.id;
            text_id = info.text_id;
            stat_id = info.stat_id;
            job_class = info.job_class;
            job_depth = info.job_depth;
            up_lv = info.up_lv;
            up_jlv = info.up_jlv;
            for(int i = 0; i < 4; ++i)
            {
                available_job[i] = info.available_job[i];
            }
        }
    }

    public class JobLevelBonus
    {
        public int job_id;
        public float[] strength = new float[4];
        public float[] vital = new float[4];
        public float[] dexterity = new float[4];
        public float[] agility = new float[4];
        public float[] intelligence = new float[4];
        public float[] mentality = new float[4];
        public float[] luck = new float[4];

        public void Copy(JobLevelBonus bonus)
        {
            job_id = bonus.job_id;
            for(int i = 0; i < 4;++i)
            {
                strength[i] = bonus.strength[i];
                vital[i] = bonus.vital[i];
                dexterity[i] = bonus.dexterity[i];
                agility[i] = bonus.agility[i];
                intelligence[i] = bonus.intelligence[i];
                mentality[i] = bonus.mentality[i];
                luck[i] = bonus.luck[i];
            }
        }
    }

    public class NewJobLevelBonus
    {
        public class Bonus
        {
            public float strength;
            public float vital;
            public float dexterity;
            public float agility;
            public float intelligence;
            public float mentality;
            public float luck;
        }
        public int job_id;
        public Bonus[] Bonuses = new Bonus[51];
    }

}
